home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3triset.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_TRISET_H = 1;
- include("real/objects/r3level.js")
-
-
- var R3CLID_TRISET = 532;
-
-
-
-
- // Virtual method
-
- R3TRISM_UPDATEFACECENTERS = 532000;
-
- function mR3TRISM_UPDATEFACECENTERS() {
- DoA(this.r3obj, 532000, 0, R3TID_INTEGER, 0);
- }
-
- // Description: adds a face between three selected vertices
-
- R3TRISM_ADDFACE = 532001;
-
- function mR3TRISM_ADDFACE() {
- DoA(this.r3obj, 532001, 0, R3TID_INTEGER, 0);
- }
-
- // Description: smooths normals of selected faces or vertices
-
- R3TRISM_SMOOTH = 532002;
-
- function mR3TRISM_SMOOTH() {
- DoA(this.r3obj, 532002, 0, R3TID_INTEGER, 0);
- }
-
- // Description: flattens normals of selected faces
-
- R3TRISM_FLATTEN = 532003;
-
- function mR3TRISM_FLATTEN() {
- DoA(this.r3obj, 532003, 0, R3TID_INTEGER, 0);
- }
-
- // Description: merges selected vertices
-
- R3TRISM_MERGE = 532004;
-
- function mR3TRISM_MERGE() {
- DoA(this.r3obj, 532004, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Replaces current face and point set with a new one.
- // p1: Integer, new face count
- // p2: Integer[], facecount*3 vertex indexes
-
- R3TRISM_NEWGEOMETRY = 532005;
-
- function mR3TRISM_NEWGEOMETRY(p1, p2) {
- DoA3(this.r3obj, 532005, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, R3TNF_ARRAY, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Computes smooth normals to all points. Normal side of faces may not be consistent.
-
- R3TRISM_SMOOTHALLQUICKLY = 532006;
-
- function mR3TRISM_SMOOTHALLQUICKLY() {
- DoA(this.r3obj, 532006, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Set face indices
- // Returns: Boolean, true if succeeded
- // p1: Integer, index of the face
- // p3: Integer[], array of three indices
-
- R3TRISM_SETFACEINDICES = 532007;
-
- function mR3TRISM_SETFACEINDICES(p1, p3) {
- return DoA2(this.r3obj, 532007, p1, R3TID_INTEGER, 0, p3, R3TID_INTEGER, R3TNF_ARRAY);
- }
-
- // Description: Set face normals
- // Returns: Boolean, true if succeeded
- // p1: Integer, index of the face
- // p3: r3Vect, array of three vectors specifying normals
-
- R3TRISM_SETFACENORMALS = 532008;
-
- function mR3TRISM_SETFACENORMALS(p1, p3) {
- return DoA2(this.r3obj, 532008, p1, R3TID_INTEGER, 0, p3, R3TID_VECTOR, 0);
- }
-
- // Description: ask face center point
- // p1: Integer, index of the face
- // p3: r3Vect, center is stored here
-
- R3TRISM_GETFACECENTER = 532009;
-
- function mR3TRISM_GETFACECENTER(p1, p3) {
- DoA2(this.r3obj, 532009, p1, R3TID_INTEGER, 0, p3, R3TID_VECTOR, 0);
- }
-
- // Description: ask edge center point
- // p1: Integer, index of the edge
- // p3: r3Vect, center is stored here
-
- R3TRISM_GETEDGECENTER = 532010;
-
- function mR3TRISM_GETEDGECENTER(p1, p3) {
- DoA2(this.r3obj, 532010, p1, R3TID_INTEGER, 0, p3, R3TID_VECTOR, 0);
- }
-
- // Description: ask face normal handle points
- // p1: Integer, index of the face
- // p3: r3Vect, array of 3 vectors. Method writes handle points to it.
-
- R3TRISM_GETFACENORMALHANDLES = 532011;
-
- function mR3TRISM_GETFACENORMALHANDLES(p1, p3) {
- DoA2(this.r3obj, 532011, p1, R3TID_INTEGER, 0, p3, R3TID_VECTOR, 0);
- }
-
- // Description: set nice normal length for all face normals
-
- R3TRISM_SETDEFAULTNORMALLENG = 532012;
-
- function mR3TRISM_SETDEFAULTNORMALLENG() {
- DoA(this.r3obj, 532012, 0, R3TID_INTEGER, 0);
- }
-
- // Description: smooths normals of selected faces or vertices if angle is greater than given limit
- // p3: Number, threshold angle in radians
-
- R3TRISM_SMOOTHBYANGLE = 532013;
-
- function mR3TRISM_SMOOTHBYANGLE(p3) {
- DoA(this.r3obj, 532013, p3, R3TID_FLOAT, 0);
- }
-
- // Description: flips normal directions. In edit mode, only selected areas are flipped.
- // p3: Boolean, if TRUE all normals are flipped regardless of point selection state
-
- R3TRISM_FLIPNORMALS = 532014;
-
- function mR3TRISM_FLIPNORMALS(p3) {
- DoA(this.r3obj, 532014, p3, R3TID_BOOLEAN, 0);
- }
-
-
-
-
- R3TRISA_PointCount = 532500;
- function SetR3TRISA_PointCount(value) {
- R3Set(this.r3obj, R3TRISA_PointCount, value, R3TID_INTEGER, 0);
- }
-
- function GetR3TRISA_PointCount() {
- return R3Get(this.r3obj, R3TRISA_PointCount, R3TID_INTEGER, 0);
- }
-
- R3TRISA_Points = 532501;
- function SetR3TRISA_Points(value) {
- R3Set(this.r3obj, R3TRISA_Points, value, R3TID_VECTOR, R3TNF_ARRAY);
- }
-
- function GetR3TRISA_Points() {
- return R3Get(this.r3obj, R3TRISA_Points, R3TID_VECTOR, R3TNF_ARRAY);
- }
-
- R3TRISA_FaceCount = 532502;
- function SetR3TRISA_FaceCount(value) {
- R3Set(this.r3obj, R3TRISA_FaceCount, value, R3TID_INTEGER, 0);
- }
-
- function GetR3TRISA_FaceCount() {
- return R3Get(this.r3obj, R3TRISA_FaceCount, R3TID_INTEGER, 0);
- }
-
- var R3TRISA_Type = 532504; // Integer
- R3TRISA_SelectResolution = 532505;
- function SetR3TRISA_SelectResolution(value) {
- R3Set(this.r3obj, R3TRISA_SelectResolution, value, R3TID_INTEGER, 0);
- }
-
- function GetR3TRISA_SelectResolution() {
- return R3Get(this.r3obj, R3TRISA_SelectResolution, R3TID_INTEGER, 0);
- }
-
- R3TRISA_PointsNotAnimateable = 532512;
- function SetR3TRISA_PointsNotAnimateable(value) {
- R3Set(this.r3obj, R3TRISA_PointsNotAnimateable, value, R3TID_INTEGER, 0);
- }
-
- function GetR3TRISA_PointsNotAnimateable() {
- return R3Get(this.r3obj, R3TRISA_PointsNotAnimateable, R3TID_INTEGER, 0);
- }
-
- R3TRISA_PhongCorrection = 532513;
- function SetR3TRISA_PhongCorrection(value) {
- R3Set(this.r3obj, R3TRISA_PhongCorrection, value, R3TID_FLOAT, 0);
- }
-
- function GetR3TRISA_PhongCorrection() {
- return R3Get(this.r3obj, R3TRISA_PhongCorrection, R3TID_FLOAT, 0);
- }
-
- var R3TRIHT_VERTEX = 1;
- var R3TRIHT_EDGE = 2;
- var R3TRIHT_FACE = 3;
- var R3TRIHT_NORMAL = 4;
- var R3TRISR_POINT = 0;
- var R3TRISR_EDGE = 1;
- var R3TRISR_FACE = 2;
-
-
- function r3Triset () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_TRISET, arguments);
- }
- // Methods
- this.UPDATEFACECENTERS=mR3TRISM_UPDATEFACECENTERS;
- this.ADDFACE=mR3TRISM_ADDFACE;
- this.SMOOTH=mR3TRISM_SMOOTH;
- this.FLATTEN=mR3TRISM_FLATTEN;
- this.MERGE=mR3TRISM_MERGE;
- this.NEWGEOMETRY=mR3TRISM_NEWGEOMETRY;
- this.SMOOTHALLQUICKLY=mR3TRISM_SMOOTHALLQUICKLY;
- this.SETFACEINDICES=mR3TRISM_SETFACEINDICES;
- this.SETFACENORMALS=mR3TRISM_SETFACENORMALS;
- this.GETFACECENTER=mR3TRISM_GETFACECENTER;
- this.GETEDGECENTER=mR3TRISM_GETEDGECENTER;
- this.GETFACENORMALHANDLES=mR3TRISM_GETFACENORMALHANDLES;
- this.SETDEFAULTNORMALLENG=mR3TRISM_SETDEFAULTNORMALLENG;
- this.SMOOTHBYANGLE=mR3TRISM_SMOOTHBYANGLE;
- this.FLIPNORMALS=mR3TRISM_FLIPNORMALS;
-
- // Attributes
- this.GetPointCount=GetR3TRISA_PointCount;
- this.SetPointCount=SetR3TRISA_PointCount;
- this.GetPoints=GetR3TRISA_Points;
- this.SetPoints=SetR3TRISA_Points;
- this.GetFaceCount=GetR3TRISA_FaceCount;
- this.SetFaceCount=SetR3TRISA_FaceCount;
- this.GetSelectResolution=GetR3TRISA_SelectResolution;
- this.SetSelectResolution=SetR3TRISA_SelectResolution;
- this.GetPointsNotAnimateable=GetR3TRISA_PointsNotAnimateable;
- this.SetPointsNotAnimateable=SetR3TRISA_PointsNotAnimateable;
- this.GetPhongCorrection=GetR3TRISA_PhongCorrection;
- this.SetPhongCorrection=SetR3TRISA_PhongCorrection;
- }
-
- r3Triset.prototype=new r3Level;
- // r3triset.h_H